package dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import lombok.Data;
@Builder
@Schema(name = "RuleAddDTO", title = "新增权限数据模型", description = "新增权限时传递的数据模型")
@Data
public class RuleAddDTO {
    @Schema(description = "规则id", requiredMode = Schema.RequiredMode.REQUIRED, example = "121")
    private Long ruleId;
    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer order;
    @Schema(description = "后端规则", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "createRule")
    private String condition;
    @Schema(description = "前端路由", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "/front_path")
    private String frontpath;
    @Schema(description = "图标", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "air")
    private String icon;
    @Schema(description = "菜单/权限（0：菜单，1：权限）", requiredMode = Schema.RequiredMode.REQUIRED, example = "0")
    private Integer menu;
    @Schema(description = "请求方法", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "GET")
    private String method;
    @Schema(description = "菜单名称", requiredMode = Schema.RequiredMode.NOT_REQUIRED, example = "菜单名称")
    private String name;
}
